package com.itheima.homework04;

public class Test4 {
    public static void main(String[] args) {
        Student stu1 = new Student("张三","男",19);
        Student stu2 = new Student();
        stu2.setName("李四");
        stu2.setSex("男");
        stu2.setAge(20);

        //打印学生熟悉那个内容
        System.out.println(stu1);
        System.out.println(stu2);

        //两个学生类的对象比较
        if (stu1.equals(stu2)) {
            System.out.println("两个学生的信息相同");
        }else {
            System.out.println("两个学生的信息不同");
        }
    }
}
